package com.wjh.mirna.service.impl;

import com.wjh.mirna.dao.CdiseaseDao;
import com.wjh.mirna.model.Cdisease;
import com.wjh.mirna.service.CdiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CdiseaseServiceImpl implements CdiseaseService {
    @Autowired
    CdiseaseDao cdiseaseDao;
    @Override
    public List<Cdisease> selectDisease() {
        return cdiseaseDao.selectDisease();
    }

    @Override
    public Cdisease selectByDname(String dname) {
        return cdiseaseDao.selectByDname(dname);
    }
}
